﻿namespace IoTClient.Enums
{
    /// <summary>
    ///
    /// </summary>
    public enum WriteOrRead
    {
        /// <summary>
        /// 只能写
        /// </summary>
        OnlyWrite,

        /// <summary>
        /// 只能读
        /// </summary>
        OnlyRead,

        /// <summary>
        /// 能读能写
        /// </summary>
        ReadAndWrite
    }

    /// <summary>
    ///
    /// </summary>
    public enum AlarmLevel
    {
        /// <summary>
        /// 超级大错误,不处理会爆炸的错误
        /// </summary>
        Fatal,

        /// <summary>
        /// 大错误
        /// </summary>
        Error,

        /// <summary>
        /// 一般错误
        /// </summary>
        Warn,

        /// <summary>
        /// 平常的信息
        /// </summary>
        Info,

        /// <summary>
        /// 调试
        /// </summary>
        Debug,

        /// <summary>
        /// 程序员调试
        /// </summary>
        Trace,

        /// <summary>
        /// 暂时用不到
        /// </summary>
        Off
    }

    /// <summary>
    /// Encoding格式枚举
    /// </summary>
    public enum EncodingEnum
    {
        /// <summary>
        ///
        /// </summary>
        UTF8,

        /// <summary>
        ///
        /// </summary>
        Unicode,

        /// <summary>
        ///
        /// </summary>
        BigEndianUnicode,

        /// <summary>
        ///
        /// </summary>
        ASCII,

        /// <summary>
        ///
        /// </summary>
        Default
    }

    /// <summary>
    /// ModbusStore存储区
    /// </summary>
    public enum ModbusStore
    {
        /// <summary>
        ///
        /// </summary>
        输入线圈,

        /// <summary>
        ///
        /// </summary>
        输出线圈,

        /// <summary>
        ///
        /// </summary>
        输入寄存区,

        /// <summary>
        ///
        /// </summary>
        保持性存储区,
    }
}